package com.lucky.carcodepro.domain.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 全局响应状态枚举
 */
@Getter
@AllArgsConstructor
public enum ResponseStatusEnums
{
    /**
     * 基础状态
     */
    FAIL("-1", "fail", "未知异常"),
    SUCCESS("200", "success", "操作成功"),
    NO_AUTH("401", "please login", "未登录"),
    /**
     * 支付相关   1000～1999
     */
    PAY_ORDER_ERROR("1009", "place order fail", "下单失败"),
    /**
     * 系统基础架构 2000～2999
     */
    RATE_LIMITER("2000", "The visits are too frequent, please try again later", "访问过于频繁，请稍候再试"),
    /**
     * 挪车码系统  8001～ 8999
     */
    CAR_CODE_NOT_FOUND("8001", "car code not found", "挪车码未找到"),
    CAR_CODE_TO_BE_BOUND("8002", "car code to be bound", "挪车码待绑定"),
    CAR_CODE_DEPRECATED("8003", "car code deprecated", "挪车码已弃用"),
    USER_NOT_CONFIGURED_NOTIFICATION_PERMISSIONS("8004", " user not configured notification permissions", "用户未配置通知"),
    ;
    private final String code;
    private final String msg;
    private final String desc;
}
